package cn.iocoder.yudao.module.system.controller.admin.mini.other.ysShop.controller.admin.ysshop.vo;

import cn.iocoder.yudao.module.system.controller.admin.mini.other.ysShop.dal.dataobject.ysshop.YsShopDO;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import java.time.LocalDateTime;
import java.time.LocalDateTime;

import com.alibaba.excel.annotation.ExcelProperty;

/**
 * 易神消费记录 Excel VO
 *
 * @author 芋道源码
 */
@Data
public class YsShopExcelVO {

    @ExcelProperty("小票流水号")
    private String orderid;

    @ExcelProperty("时间")
    private String date;

    @ExcelProperty("会员编号")
    private String vipid;

    @ExcelProperty("交易类型")
    private String type;

    @ExcelProperty("款式")
    private String fas;

    @ExcelProperty("颜色")
    private String col;

    @ExcelProperty("数量")
    private Integer quantity;

    @ExcelProperty("结算价")
    private String price;

    @ExcelProperty("消费店铺")
    private String shp;

    public YsShopExcelVO() {
    }

    public YsShopExcelVO(YsShopDO vo) {
        this.orderid = vo.getOrderid();
        this.date = vo.getDateStr();
        this.vipid = vo.getVipid();
        this.type = vo.getType();
        this.fas = vo.getFas();
        this.col = vo.getCol();
        this.quantity = vo.getQuantity();
        this.price = String.valueOf(vo.getPrice());
        this.shp = vo.getShp();
    }
}
